//
//  UIScrollView+TL_Refresh.h
//  WXReader
//
//  Created by TSL on 2023/7/19.
//  Copyright © 2023 Andrew. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MJRefresh.h>
#import "TL_BubblesHeader.h"
#import "TL_BubblesFooter.h"
#import "TL_LoadMoreFooter.h"

NS_ASSUME_NONNULL_BEGIN

@interface UIScrollView (TL_Refresh)

- (void)addHeaderRefreshWithRefreshingBlock:(MJRefreshComponentAction)refreshBlock;

- (void)addHigherHeaderRefreshWithRefreshingBlock:(MJRefreshComponentAction)refreshBlock;

- (void)addFooterRefreshWithRefreshingBlock:(MJRefreshComponentAction)refreshBlock;

- (void)addToastFooterRefreshWithRefreshingBlock:(MJRefreshComponentAction)refreshBlock;

- (void)showRefreshFooter;

- (void)showRefreshHeader;

- (void)hideRefreshFooter;

- (void)hideRefreshFooterAndHiddenLab;

- (void)hideRefreshHeader;

- (void)endRefreshing;

@end

NS_ASSUME_NONNULL_END
